/*
 * maz_app_debugcmd.h
 *
 *  Created on: 2020年6月14日
 *      Author: Paul
 */

#include "maz_app.h"
#include "maz_com.h"
#include "maz_drv.h"
#include "maz_mod.h"

#ifndef INC_MAZ_APP_I2CTOOLS_H_
#define INC_MAZ_APP_I2CTOOLS_H_

#define DATA_BUFF_SIZE    1024

typedef struct _MAZDRV_I2C_DEVICES_
{
    char                *name;
    unsigned char       addr;                      // 设备地址
    I2C_TypeDef         *Instance;
} MAZDRV_I2C_DEVICES;

int MAZ_App_i2ctool_init(void);
void MAZ_App_i2ctool_task(void *argument);
int MAZ_DBGCMD_i2ctool_read(void *cmd, char *param);
int MAZ_DBGCMD_i2ctool_write(void *cmd, char *param);
int MAZ_DBGCMD_i2ctool_scan(void *cmd, char *param);

#endif /* INC_MAZ_APP_I2CTOOLS_H_ */

